import { acceptHMRUpdate, defineStore } from "pinia";
// import { fetchTopicList } from "@/server";
export const useArticleStore = defineStore("article", {
  state: () => {
    return {
      articleList: [],
    };
  },
  getters: {
    getArticleList: (state) => state.articleList,
  },
  actions: {
    setArticleList(data:any) {
      this.articleList = data;
    },
  },
});

if (import.meta.hot)
  import.meta.hot.accept(acceptHMRUpdate(useArticleStore, import.meta.hot));
